package org.cbyyx.tc.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.cbyyx.tc.model.dto.categoryRequest.CategoryAddRequest;
import org.cbyyx.tc.model.dto.categoryRequest.CategoryQueryRequest;
import org.cbyyx.tc.model.dto.categoryRequest.CategoryUpdateRequest;
import org.cbyyx.tc.model.entity.ProductCategory;
import org.cbyyx.tc.model.vo.categoryResponse.CategoryVO;

import java.util.List;

/**
* @author cbyyx
* @description 针对表【product_category(商品分类表)】的数据库操作Service
* @createDate 2025-04-30 13:42:12
*/
public interface ProductCategoryService extends IService<ProductCategory> {
    boolean addCategory(CategoryAddRequest request);
    boolean updateCategory(CategoryUpdateRequest request);
    boolean deleteCategory(Long id);
    CategoryVO getCategory(Long id);
    List<CategoryVO> listCategories(CategoryQueryRequest request);
    List<CategoryVO> listChildCategories(Long parentId);
}
